<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-testCarCollection">
	<thead>
		<tr>
		    <th style="width: 80px">主键</th>
			<th style="width: 80px">保险产品</th>
			<th style="width: 80px">投保地区</th>
			<th style="width: 80px">下单时间</th>
			<th style="width: 80px">购买人身份</th>
			<th style="width: 80px">车主</th>
			<th style="width: 80px">车牌</th>
			<th style="width: 80px">电话</th>
			<th style="width: 80px">邮箱</th>			
			<th style="width: 80px">保险公司</th>
			<th style="width: 80px">处理状态</th>
		</tr>
	</thead>
	 <tbody>
		<c:forEach var="testCarCollection" items="${testCarCollections}" varStatus="status">
		<tr data-id="${testCarCollection.id}">
			<td>${status.index+1}</td>
			<td>${testCarCollection.productName}</td>
			<td>${testCarCollection.insuPlace}</td>
			<td>${testCarCollection.createDate}</td>

			<td>${testCarCollection.buyerIdentity}</td>
			<td>${testCarCollection.carOwener}</td>
			<td>${testCarCollection.carLicenseNo}</td>
			<td>${testCarCollection.phone}</td>
			<td>${testCarCollection.email}</td>
			<td>${testCarCollection.insuName}</td>
			
			<c:if test="${testCarCollection.modifyState=='0'}">
				<td class="state color-blue">
				    <t:provider packageName="tp" enumClassName="TestCarCollectionStatus" value="${testCarCollection.modifyState}" />  
				</td>
			</c:if>
				
			<c:if test="${testCarCollection.modifyState=='1'}">
				<td class="state color-red">
				    <t:provider packageName="tp" enumClassName="TestCarCollectionStatus" value="${testCarCollection.TestCarCollectionStatus}" />  
				</td>
				<td class="text-center ">
				  	<a href="javaScript:toOffer('${testCarCollection.id}')" class="text-slate-700 find" title="点击报价"><i class="glyphicon glyphicon-ok text-info"></i></a>  
			   	</td>
			</c:if>
		</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>
<script type="text/javascript">
	
	function toOffer(id) {	

		top.openModal("/admin/zzb/testCarCollection/toOffer?key="+id,"customer_form","报价信息",770,500);
	}

</script>
